//
// Created by Administrator on 2023/7/30.
//
#include <iostream>

using namespace std;

class Solution {
public:
    int minBitFlips(int start, int goal) {
        int tmp = start xor goal;
        int count = 0;
        while (tmp) {
            count += tmp & 1;
            tmp >>= 1;
        }
        return count;
    }
};

int main() {
    Solution s;
    cout << s.minBitFlips(10, 7) << endl;
    cout << s.minBitFlips(3, 4) << endl;
}
